package com.yx.backstage.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author YangXiong
 * @since 2023-04-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="SysUser对象", description="用户表")
public class SysUser implements Serializable {
    private static final long serialVersionUID = 6753876552779028846L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "账号")
    private String account;

    @ApiModelProperty(value = "用户名")
    private String userName;

    @ApiModelProperty(value = "用户密码")
    private String password;

    @ApiModelProperty(value = "上一次登录时间")
    private Date lastLoginTime;

    @ApiModelProperty(value = "账号是否可用。默认为1（可用）")
    private Integer enabled;

    @ApiModelProperty(value = "是否过期。默认为1（没有过期）")
    private Integer notExpired;

    @ApiModelProperty(value = "账号是否锁定。默认为1（没有锁定）")
    private Integer accountNotLocked;

    @ApiModelProperty(value = "证书（密码）是否过期。默认为1（没有过期）")
    private Integer credentialsNotExpired;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

    @ApiModelProperty(value = "创建人")
    private Long createUser;

    @ApiModelProperty(value = "修改人")
    private Long updateUser;

    @ApiModelProperty(value = "头像")
    private String avatar;

    @ApiModelProperty(value = "爱好")
    private Integer hobby;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "1:男 2:女 3:未知")
    private Integer sex;

    @ApiModelProperty(value = "出生日期")
    private Date birthday;

    @ApiModelProperty(value = "是否是管理员 默认0 不是 1 是")
    private Integer isManager;

    @ApiModelProperty(value = "是否启用 0未启用，1启用")
    private Integer enable;

    @ApiModelProperty(value = "是否删除，0未删，1已删")
    private Integer isDelete;
}
